/**
 * 依赖配置
 * 返回,返回依赖列表
 * @param resolve
 * @param isTestable
 * @param data
 * @returns {*}
 */

export default class  LibLoad{
    constructor(){

        this.libModule={};
        this.libs=[];
    }
    load(moduleName){
        this._load(moduleName)
        return this.libs;
    }

    _load(moduleName){
        // 读取文件成功
        let root =qguan("root");
        let Rx =qguan("rx");
        let Phere =qguan("phere");
        let data= root.findData(moduleName)
        let rx =new Rx();
          rx.loadData(data1);
        let dx=  rx.findFile(obj);
        let phere=new Phere();

         phere.loadData(dx.outData())

        let block= phere.findBlock(1)

        for (let i=0;i<block.length;i++){
            let comm=[];
            let row=block.findRow(i+1);
            for(let l=0;l<4;l++){
                comm.push(StrTo.numToUtf8(row.find(l+1)))
            }
            this.libs.push([comm[0],word[1],word[2],word[3]])
            this.libModule[word[0]]=true;
            this._load(word[0]);
        }
    }
}
